<?php 
require_once 'helpers/url_helper.php';

$menu = array(
    'products' => array('caption' => 'Products list', 'path' => 'products', 'method' => ''),
    'list_products' => array('caption' => 'Shop', 'path' => '', 'method' => 'list'),
    'migrations' => array('caption' => 'Migrations', 'path' => 'migrate', 'method' => ''),
    'login' => array('caption' => 'Login', 'path' => 'login', 'method' => '')
);
?>
<table>
<tr>
<?php foreach ($menu as $name => $item): ?>
	<?php if ($name === $current_menu_item): ?>
	<td><b><a href="<?=get_url($item['path'],$item['method'],array())?>"><?=$item['caption']?></a></b></td>
	<?php else: ?>
	<td><a href="<?=get_url($item['path'],$item['method'],array())?>"><?=$item['caption']?></a></td>
	<?php endif; ?>
<?php endforeach; ?>
</tr>
</table>
